package com.ling.dao;

import com.ling.bean.UserFollow;
import com.ling.bean.UserFollowExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserFollowMapper {
    //定制查询，获取指定userId关注的博主，并带上用户详细信息
    List<UserFollow> selectUserFollowByUserId(String userId);

    long countByExample(UserFollowExample example);

    int deleteByExample(UserFollowExample example);

    int deleteByPrimaryKey(String id);

    int insert(UserFollow record);

    int insertSelective(UserFollow record);

    List<UserFollow> selectByExample(UserFollowExample example);

    UserFollow selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") UserFollow record, @Param("example") UserFollowExample example);

    int updateByExample(@Param("record") UserFollow record, @Param("example") UserFollowExample example);

    int updateByPrimaryKeySelective(UserFollow record);

    int updateByPrimaryKey(UserFollow record);
}